home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 3931 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.0 KB

  1. Path: mail2news.demon.co.uk!hpl3sn03.cern.ch
  2. From: Dan Pop <danpop@mail.cern.ch>
  3. Newsgroups: comp.lang.c
  4. Subject: Re: timer
  5. Date: Thu, 1 Feb 1996 01:52:38 +0100
  6. Organization: CERN European Lab for Particle Physics
  7. Message-ID: <9602010052.AA19690@dxmint.cern.ch>
  8. References: <311000C2.546DE888@applique.sedd.trw.com>
  9. X-NNTP-Posting-Host: hpl3sn03.cern.ch
  10. X-Newsreader: NN version 6.5.0 #7 (NOV)
  11. X-Mail2News-Path: dxmint.cern.ch!hpl3sn03.cern.ch
  12.  
  13. Ilan Tirer <tireri@applique.sedd.trw.com> writes:
  14.  
  15. >How would you setup a timer so every 1 minute I can perform some 
  16. >operation.
  17.  
  18. The answer is very simple: you can't do this in C :-)
  19.  
  20. You need additional support from your OS to achieve this, so the
  21. best thing to do is to repost the question to a platform-specific
  22. newsgroup.
  23.  
  24. If you happen to be on a Unix platform, check the man pages for the
  25. functions signal() and alarm() (or, for a more esoteric approach,
  26. setitimer()).
  27.  
  28. Dan
  29. -- 
  30. Dan Pop
  31. CERN, CN Division
  32. Email: danpop@mail.cern.ch 
  33. Mail:  CERN - PPE, Bat. 31 R-004, CH-1211 Geneve 23, Switzerland
  34.